﻿using System;

class FindNumbersWIthZeroReminder
{
    static void Main()
    {
        int firstNumber;
        int secondNumber;

        Console.WriteLine("Type the start number of interval:");
        bool isFirstNumberValid = int.TryParse(Console.ReadLine(), out firstNumber);
        Console.WriteLine("Type the end number of interval:");
        bool isSecondNumberValid = int.TryParse(Console.ReadLine(), out secondNumber);

        if (isFirstNumberValid && isSecondNumberValid)
        {
            int count = 0;
            for (int i = firstNumber; i <= secondNumber; i++)
            {
                if (i%5==0)
                {
                    count++;
                }
            }
            Console.WriteLine("\np({0},{1})={2}\n",firstNumber,secondNumber,count);
        }
        else
        {
            Console.WriteLine("Your input isn`t OK!!!");
        }
    }
}